import axios from '../axios'
export default {
    loginin(data) {
        return axios({
            url: "/pro-api/user/login", method: 'post', data: data
        })
    },
    usernameObj() {
        return axios({
            url: "/pro-api/user/info", method: "get", params: { token: localStorage.getItem('token') }
        })
    },
    // 会员接口
    goodslist(e) {
        return axios({
            url: "/pro-api/member/list/search/" + e + "/10",
            method: 'post',
        })
    },
    // 供应商管理接口 
    gongyingslist(e, q) {
        console.log(e, q);
        return axios({
            url: "/pro-api/supplier/list/search/" + e + "/" + q,
            method: 'post',
        })
    },
    //员工接口
    yuangonglist(e) {
        return axios({
            url: "/pro-api/staff/list/search/" + e + "/10",
            method: 'post',
        })
    }
    
}